﻿<%@ Page Language="C#" MasterPageFile="~/Manager/MasterPage/PageTemplate.Master"
    AutoEventWireup="true" CodeBehind="UserManager.aspx.cs" Inherits="BingZi.UserManager.UserManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveUrl("~/") %>Manager/inc/FineMessBox/css/subModal.css" />

    <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>Manager/inc/FineMessBox/js/common.js"></script>

    <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>Manager/inc/FineMessBox/js/subModal.js"></script>

    <BingZiWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
        HeadOPTxt="用户资料" HeadTitleTxt="用户资料管理">
        <BingZiWebControls:HeadMenuButtonItem ButtonName="用户" ButtonPopedom="List" ButtonUrl="Default.aspx"
            ButtonUrlType="Href" ButtonVisible="True" />
    </BingZiWebControls:HeadMenuWebControls>
    <BingZiWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <BingZiWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="用户帐号">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_body table_body_NoWidth" style="height: 28px">
                        用户名
                    </td>
                    <td class="table_none table_none_NoWidth" style="height: 28px">
                        <asp:TextBox ID="U_LoginName" title="请输入用户名~20:!" runat="server" CssClass="text_input"></asp:TextBox>
                        <asp:Label ID="U_LoginName_Value" runat="server"></asp:Label>
                    </td>
                    <td class="table_body table_body_NoWidth" style="height: 28px">
                        密码
                    </td>
                    <td class="table_none table_none_NoWidth" style="height: 28px">
                        <asp:TextBox ID="U_Password" TextMode="Password" title="请输入密码~32:!" runat="server"
                            CssClass="text_input"></asp:TextBox>
                        <asp:Label ID="U_Password_Value" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth">
                        用户类型
                    </td>
                    <td class="table_none table_none_NoWidth">
                        <asp:DropDownList ID="U_Type" runat="server">
                            <asp:ListItem Value="1">普通用户</asp:ListItem>
                            <asp:ListItem Value="2">管理员</asp:ListItem>
                            <asp:ListItem Value="0">超级用户</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="U_Type_Value" runat="server"></asp:Label>
                    </td>
                    <td class="table_body table_body_NoWidth">
                        禁止登陆
                    </td>
                    <td class="table_none table_none_NoWidth">
                        <asp:DropDownList ID="U_Status" runat="server">
                            <asp:ListItem Value="0">正常</asp:ListItem>
                            <asp:ListItem Value="1">禁止</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="U_Status_Value" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth">
                        用户角色
                    </td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <BingZiWebControls:MultiListBox ID="MultiListBox1" runat="server" DataTextField="R_RoleName"
                            DataValueField="RoleID" SelectionMode="Multiple">
                            <FirstListBox>
                                <StyleSheet Width="140px" Height="160px" />
                            </FirstListBox>
                            <SecondListBox>
                                <StyleSheet Width="140px" Height="160px" />
                            </SecondListBox>
                        </BingZiWebControls:MultiListBox>
                        <asp:Label ID="Roles_Value" runat="server" Text=""></asp:Label>
                        (超级用户不受用户角色权限限制,默认所有权限.)
                    </td>
                </tr>
                                <tr>
                    <td class="table_body table_body_NoWidth">
                        用户认证类型
                    </td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                    <asp:DropDownList ID="ddl_U_LoginType" runat="server">
                        <asp:ListItem Text="系统默认" Value=""></asp:ListItem>
                        <asp:ListItem Text="域认证" Value="BingZi,BingZi.LdapAuthentication"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="lb_U_LoginType" runat="server"></asp:Label>
                    </td>
                    </tr>
            </table>
        </BingZiWebControls:TabOptionItem>
        <BingZiWebControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="用户资料"
            Tab_Visible="False">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">

                <tr>
                    <td class="table_body table_body_NoWidth">
                        部门
                    </td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <span id="U_GroupID_Span" runat="server">
                            <input type="hidden" runat="server" name="U_GroupID" id="U_GroupID"><input runat="server"
                                name="U_GroupID_Txt" id="U_GroupID_Txt" class="text_input" readonly>
                            <input type="button" value="选择部门" id="button3" name="buttonselect" onclick="javascript:ShowDepartID()"
                                class="cbutton">
                            <input type="button" value="清除" onclick="javascript:ClearSelect();" class="cbutton" />
                        </span>
                        <asp:Label ID="U_GroupID_Value" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
              
                <tr>
                    <td class="table_body table_body_NoWidth">
                        职称
                    </td>
                    <td class="table_none table_none_NoWidth">
                        <BingZiWebControls:FieldWebControls ID="FieldWebControls1" runat="server" F_Key="Title"
                            Field_Name="U_Title" LineNum="2" LineNumOn="True" />
                        <asp:Label ID="U_Title_Value" runat="server" Text=""></asp:Label>
                    </td>
                    <td class="table_body table_body_NoWidth">
                        邮件地址
                    </td>
                    <td class="table_none table_none_NoWidth">
                        <asp:TextBox ID="U_Email" title="请输入邮件地址~100:email" runat="server" CssClass="text_input"></asp:TextBox>
                        <asp:Label ID="U_Email_Value" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
              
              
                <tr>
                    <td class="table_body table_body_NoWidth">
                        备注说明
                    </td>
                    <td class="table_none table_none_NoWidth" colspan="3">
                        <asp:TextBox ID="U_Remark" title="请输入备注说明~2000:" runat="server" Rows="5" TextMode="MultiLine"
                            CssClass="tex_input"></asp:TextBox>
                        <asp:Label ID="U_Remark_Value" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr id="DispTr" runat="server" visible="false">
                    <td class="table_body table_body_NoWidth">
                        最后访问IP
                    </td>
                    <td class="table_none table_none_NoWidth">
                        <asp:Label ID="U_LastIP_Value" runat="server" Text=""></asp:Label>
                    </td>
                    <td class="table_body table_body_NoWidth">
                        最后操作时间
                    </td>
                    <td class="table_none table_none_NoWidth">
                        <asp:Label ID="U_LastDateTime_Value" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
        </BingZiWebControls:TabOptionItem>
        <BingZiWebControls:TabOptionItem ID="TabOptionItem3" runat="server" Tab_Name="个人设定">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_body">
                        菜单样式
                    </td>
                    <td class="table_none">
                      <asp:DropDownList ID="MenuSink" runat="server">
                        <asp:ListItem Value="0">经典</asp:ListItem>
                        <asp:ListItem Value="1">流行(仅限IE)</asp:ListItem>
                        <asp:ListItem Value="2">朴素</asp:ListItem>
                        <asp:ListItem Value="3">多级菜单</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="MenuSink_Txt" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="table_body">
                        表格样式
                    </td>
                    <td class="table_none">
                    <asp:DropDownList ID="TableSink" runat="server">
                        <asp:ListItem Value="default">经典</asp:ListItem>
                        <asp:ListItem Value="blue">深蓝</asp:ListItem>
                        <asp:ListItem Value="red">深红</asp:ListItem>
                        <asp:ListItem Value="green">深绿</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="TableSink_Txt" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="table_body">
                        页码设定(每页/笔)
                    </td>
                    <td class="table_none">
                     <asp:DropDownList ID="PageSize" runat="server">
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem>40</asp:ListItem>
                        <asp:ListItem>80</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="PageSize_Txt" runat="server"></asp:Label>
                    </td>
                </tr>                                
            </table>
        </BingZiWebControls:TabOptionItem>
    </BingZiWebControls:TabOptionWebControls>
    <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center" id="PostButton"
        runat="server">
        <tr>
            <td align="right">
                <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定" OnClick="Button1_Click" />
                <input id="Reset1" class="button_bak" type="reset" value="重填" />
            </td>
        </tr>
    </table>

    <script language="javascript">
       var MaxImgUrl = "<%=MaxImgUrl %>"; 
        rnd.today=new Date(); 

    rnd.seed=rnd.today.getTime(); 

    function rnd() { 

　　　　rnd.seed = (rnd.seed*9301+49297) % 233280; 

　　　　return rnd.seed/(233280.0); 

    }; 

    function rand(number) { 

　　　　return Math.ceil(rnd()*number); 

    }; 
    
    
    function AlertMessageBox(file_name)
    {

	        if (file_name!=undefined){
	            var ShValues = file_name.split('||');
	            if (ShValues[1]!=0)
	            {
	                document.all.<%=this.U_GroupID_Txt.ClientID %>.value=ShValues[0];
	                document.all.<%=this.U_GroupID.ClientID %>.value=ShValues[1];
	            }            
	        }
	         
    }
      function ShowDepartID()
        {
            showPopWin('选择部门','SelectGroup.aspx?'+rand(10000000), 215, 255, AlertMessageBox,true,true)
        }
       
        

      
        
        function ClearSelect()
        {
   	        document.all.<%=this.U_GroupID_Txt.ClientID %>.value="";
            document.all.<%=this.U_GroupID.ClientID %>.value="";
        }
    </script>

</asp:Content>
